﻿
namespace Cos.Module.CMS.NHibernate.Test
{
    using System;
    using System.Collections.Generic;
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class ArchivePageDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapArchivePageDataModel()
        {
            new PersistenceSpecification<ArchivePageDataModel>(Session)
               .CheckProperty(x => x.NavId, 33)
               .CheckProperty(x => x.CultureCode, "en-us")
               .CheckProperty(x => x.ArchiveDate, new DateTime(2000, 01, 01))
               .CheckProperty(x => x.PageName, "Page1")
               .CheckProperty(x => x.IsPageNavEnd, true)
               .CheckProperty(x => x.Author, "John pet")
               .CheckProperty(x => x.IsPageVisible, true)
               .CheckProperty(x => x.IsPageVisibilityPreview, true)
               //.CheckComponentList(x => x.ArchiveElements, new List<ArchiveElementDataModel>())
                .VerifyTheMappings();
        }
    }
}
